<?php
namespace app\index\model;
use think\Db;
use think\Model;

class Home extends Model {

    public function testGet() {
        $sql = "SELECT * FROM `bill`";
        $data = Db::query($sql);
        return $data;
    }

    public function testPost($id) {
        $sql = "SELECT * FROM `bill` WHERE `BillID` <= $id ";
        // var_dump($sql);
        $data = Db::query($sql);
        return $data;
    }
    
}